package com.flt.module.all.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.flt.module.base.controller.BaseController;
import com.flt.module.homepage.service.IHomepageService;

@Controller
@RequestMapping("/all/*")
public class AllController extends BaseController {
	
	@Autowired
	private IHomepageService service;

	@RequestMapping("page")
	public String page(HttpServletRequest request,Model model){
		
		model.addAttribute("menus", service.findAllMenus());
		model.addAttribute("defaultMenu", service.findDefaultMenu());
		model.addAttribute("basePath", super.getBasePath(request));
		return "all/page.ftl";
	}
}
